package com.portletinhell.service;

import com.portletinhell.DAO.IPhraseDAO;
import com.portletinhell.DAO.PhraseDAO;
import com.portletinhell.modell.Phrase;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class PhraseService {
	
	public PhraseService(){
	};
	
        @Autowired
        private IPhraseDAO phraseDAO;

    public void setPhraseDAO(IPhraseDAO phraseDAO) {
        this.phraseDAO = phraseDAO;
    }
        
        @Transactional
	public List<Phrase> getPhrases()
	{               
             return phraseDAO.getPharses();
	}
	
}


